#!/bin/bash
#read -p "请输入数组的值，空格分割"

index=0
for i in "$@"
do
	array[$index]=$i
	echo "数组第$index位${array[$index]}"
	declare -i index=$index+1
done
echo "数组所有容:${array[*]}"

